package com.ibeeking.found.common.config.feign;

import com.ibeeking.found.common.config.feign.fallback.GlobalJobFeignClientFallbackFactory;
import com.ibeeking.found.common.entity.TimeTaskJobParam;

import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author ibeeking
 */
@FeignClient(name = "gmc-global-g-server", contextId = "commonGlobalJobFeignClient", path = "/g", fallbackFactory = GlobalJobFeignClientFallbackFactory.class, decode404 = true)
public interface GlobalJobFeignClient {

    @PostMapping(value = "/job/feign/v1/createJobInfoForTenantDataSync")
    ResponseResult<Boolean>  createJobInfoForTenantDataSync(@RequestBody TimeTaskJobParam param);

    @PostMapping(value = "/job/feign/v1/delJobInfoForTenantDataSync")
    ResponseResult<Boolean>  delJobInfoForTenantDataSync(@RequestBody TimeTaskJobParam param);
}
